package com.finger.statisticsservice.client;

import com.finger.commonutils.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient("service-edu")
public interface EduClient {

    @GetMapping("/eduservice/coursefront/getCourseInfo")
    public CourseWebVoOrder getCourseInfo(@RequestParam("id") String id);

    @PutMapping("/eduservice/coursefront/updateCourseBuyCount")
    public boolean updateCourseBuyCount(@RequestParam("courseId")String courseId);
}
